package com.qingcloud.adminbackend.entity.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 作业组件实例输出字段表
 * </p>
 *
 * @author wangjinnan
 * @since 2021-01-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("df_job_component_instance_output")
public class JobComponentInstanceOutput implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "自增主键", example = "1")
    private Integer id;
    /**
     * 组件实例ID
     */
    @ApiModelProperty(value = "组件实例ID", example = "1")
    private Integer instanceId;

    /**
     * 输出字段名称
     */
    @ApiModelProperty(value = "输出字段名称", example = "1")
    private String name;

    /**
     * 输出字段KEY
     */
    @TableField(value = "`key`")
    @ApiModelProperty(value = "输出字段KEY", example = "1")
    private String key;

    /**
     * 参数值类型，1-字符串，2-整数，3-浮点数
     */
    @ApiModelProperty(value = "参数值类型，1-字符串，2-整数，3-浮点数", example = "1")
    private Integer valueType;

    /**
     * 字段描述
     */
    @ApiModelProperty(value = "字段描述", example = "1")
    private String description;

    @ApiModelProperty(value = "公共组件的输出主键", example = "1")
    private Integer componentOutputId;

}
